# Contributor: Bart Ribbers <bribbers@disroot.org>

# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=kde-frameworks
maintainer="team/kde <bribbers@disroot.org>"
pkgname=kstatusnotifieritem
pkgver=6.7.0
pkgrel=0
pkgdesc="Implementation of Status Notifier Items"
arch="all !armhf" # armhf blocked by extra-cmake-modules
url="https://community.kde.org/Frameworks"
license="LGPL-2.0-or-later"
makedepends="
	doxygen
	extra-cmake-modules
	graphviz
	kwindowsystem-dev
	qt6-qtbase-dev
	qt6-qttools-dev
	samurai
	"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
_repo_url="https://invent.kde.org/frameworks/kstatusnotifieritem.git"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/kstatusnotifieritem-$pkgver.tar.xz"
options="!check" # Has a tests folder but not actually usable tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_QCH=ON
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
833715f69430dbaec6c562a81bfcf15fe66be325b12826280997227f4a179475210ea933099e0a94df2a2256b2df575149a5a00c34012d8ebcfaafaca37218a9  kstatusnotifieritem-6.7.0.tar.xz
"
